package com.qujia.common.enums;

public enum RechargeTypeEnum {
    imp("imp","手动充值"),
    wx("wx","微信充值"),
    pos("pos","移动充值"),
    cdk("cdk","车队卡  "),
    dkq("dkq","实体卡  "),
    def("def",""),
    dkqxj("dkqxj","实体后台"),
    cjhy("cjhyxs","超级会员");
    ;

    private String type;
    private String des;

    RechargeTypeEnum(String type, String des) {
        this.type = type;
        this.des = des;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public static RechargeTypeEnum getByType(String type) {
        for (RechargeTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }

        }
        return  RechargeTypeEnum.def;
    }
}
